package VIEW;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import DAL.BaseDAO;
import DAL.DoAsapItemDAO;
import DOMAIN.DoAsapItem;

public class EditDoAsapItemServlet extends HttpServlet {

	public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
	{
		BaseDAO<DoAsapItem> dao = new DoAsapItemDAO();
		System.out.println(request.getParameter("id"));
		int DoAsapItemId = Integer.parseInt(request.getParameter("id")) ;
	
		request.setAttribute("DoAsapItem", dao.Find(DoAsapItemId));
		request.getRequestDispatcher("EditDoAsapItem.jsp").forward(request, response);	
	}	
}